<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>PdfVectorOutput</title></head>
<body bgcolor="#EFF1F0" link="#3A3966" vlink="#000000" alink="#000000">
<font face="Verdana, sans-serif" size="2"><p align="center"><b><font size="4">PdfVectorOutput()</font></b></p>
<p><b>语法</b></p><blockquote>

Result = <font color="#3A3966"><b>PdfVectorOutput</b></font>(Filename$, Width.d, Height.d [, Unit])</blockquote>

</blockquote>
<b>概要</b><br><blockquote>



Creates a PDF file and returns the OutputID to perform vector drawing operations. 
The actual drawing operations must be enclosed in a <a href="startvectordrawing.html">StartVectorDrawing()</a> / <a href="stopvectordrawing.html">StopVectorDrawing()</a> block. 
The PDF file can have multiple pages using the <a href="newvectorpage.html">NewVectorPage()</a> command. 
<br>
<br>
<b>Note: </b> This function is only available on Linux and Mac OSX. 

 

</blockquote><p><b>参数</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>FileName$</i></td>
<td width="90%"> 
 
Specifies the filename of the PDF to create. If the file exists, it will be overwritten. 

 

</td></tr>
<tr><td><i>Width.d, Height.d</i></td>
<td> 
 
Specifies the dimensions of a page in the PDF in units of the vector drawing output. 

 

</td></tr>
<tr><td><i>单位 (可选)</i></td>
<td> 
 
Specifies the units for the vector drawing output. 
The default unit for PDF files is <font color="#924B72">#PB_Unit_Point</font>. 
 
<pre><font face="Courier New, Courier, mono"size="2">  <font color="#924B72">#PB_Unit_Pixel</font>     : Values are measured in pixels (or dots in case of a printer)
  <font color="#924B72">#PB_Unit_Point</font>     : Values are measured in points (1/72 inch)
  <font color="#924B72">#PB_Unit_Inch</font>      : Values are measured in inches
  <font color="#924B72">#PB_Unit_Millimeter</font>: Values are measured in millimeters
</font></pre>

</td></tr>
</table>
</blockquote><p><b>返回值</b></p><blockquote>



The OutputID of the given file to perform 2D rendering operation on it using <a href="startvectordrawing.html">StartVectorDrawing()</a>. 

 

</blockquote><p><b>示例</b></p><blockquote>


<pre><font face="Courier New, Courier, mono"size="2"><font color="#3A3966">  LoadFont</font>(0, "Times New Roman", 20)
    
  <b><font color="#3A3966">If</font></b> <font color="#3A3966">StartVectorDrawing</font>(<font color="#3A3966">PdfVectorOutput</font>("test.pdf", 595, 842))  
<font color="#3A3966">    VectorFont</font>(<font color="#3A3966">FontID</font>(0), 25)
    
<font color="#3A3966">    MovePathCursor</font>(20, 20)
<font color="#3A3966">    DrawVectorText</font>("This is page 1...")
    
<font color="#3A3966">    NewVectorPage</font>()
    
<font color="#3A3966">    MovePathCursor</font>(20, 20)
<font color="#3A3966">    DrawVectorText</font>("This is page 2...")      

<font color="#3A3966">    StopVectorDrawing</font>()
  <b><font color="#3A3966">EndIf</font></b>
</font></pre>

</blockquote><p><b>参阅</b></p><blockquote>

<a href="svgvectoroutput.html">SvgVectorOutput()</a>, <a href="../image/imagevectoroutput.html">ImageVectorOutput()</a>, <a href="../printer/printervectoroutput.html">PrinterVectorOutput()</a>, <a href="../window/windowvectoroutput.html">WindowVectorOutput()</a>, <a href="../gadget/canvasvectoroutput.html">CanvasVectorOutput()</a> 

</Blockquote><p><b>已支持操作系统 </b><Blockquote>Linux, MacOS X</Blockquote></p><center>&lt;- <a href=pathcursory.html>PathCursorY()</a> - <a href="index.html">VectorDrawing Index</a> - <a href="resetcoordinates.html">ResetCoordinates()</a> -&gt;<br><br>

</body></html>